{* Вкладка КОНТАКТЫ *}

<table id="contact" class="ui-widget ui-corner-top" width="75%" align="center" cellspacing="0" rules="all" style="border: solid 1px #000000;">
<thead class="ui-widget-header">
    <tr>
	<th>#</th>
	<th>ФИО</th>
	<th>Должность</th>
	<th>Телефон</th>
	<th>E-Mail</th>
	<th>Примечание</th>
	<th>&nbsp;</th>
    </tr>
</thead>
<tbody>
{foreach from=$contacts item=contact name=contacts}
    <tr class="data-row">
	<td align="center"><span style="display: none;">{$contact.id}</span>{$smarty.foreach.contacts.iteration}</td>
	<td style="padding-left: 1em;">{$contact.contact_name|default:'&mdash;'}</td>
	<td align="center">{$contact.post|default:'&mdash;'}</td>
	<td align="center">{if $contact.phone_number!=''}<span class="tel-number">{$contact.phone_number}</span>{else}&mdash;{/if}</td>
	<td align="center">{if $contact.email!=''}{mailto address=$contact.email}{else}&mdash;{/if}</td>
	<td style="padding-left: 1em;">{$contact.note|default:'&mdash;'}</td>
	<td align="center"><a href="?action=contact.delete&id={$contact.id}" class="contact-delete"><img src="images/icons/delete_16.png" border="0" title="Удалить"/></a></td>
    </tr>
{foreachelse}
    <tr><td align="center" colspan="7"><i>контактов не найдено</i></td></tr>
{/foreach}
</tbody>
</table>
<br/>
<a href="javascript:void(0)" id="contact-add"><img src="images/icons/plus_16.png" border="0"/>&nbsp;Добавить контакт</a>
